<?php
// Email me the user to add to mailing list
if (isset($_POST['email']))
  mail('brandon.j.groce@gmail.com', 'Add me to your SMStoPHP list!', $_POST['email']);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>SMStoPHP Project Homepage</title>
    <style type="text/css">
      body{
        background-color:#fafafa;
        margin:0;
        padding:0;
      }
      #header {
        margin:0 auto;
        padding:10px;
        height:40px;
        background-color:#999;
      }
      h1 {
        text-align:center;
        padding:0;
        margin:0;
      }
      #content{
        width:600px;
        margin:0 auto;
      }
    </style>
  </head>
  <body>
    <div id="wrap">
      <div id="header"><h1>SMStoPHP</h1></div>
      <div id="content">
        <p>
          Welcome to the SMStoPHP project homepage.  We're working on an open source PHP library
          that will allow control of a web application through SMS text messaging
          from your cellular phone.  Stay tuned...
        </p>
        <form action="index.php" method="post">
          <input type="text" name="email" /> - Email me when released <br />
          <input type="submit" value="submit" />
        </form>
        <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=5613713d-d4a4-4011-991a-fd3e4cdb15ff&amp;type=website&amp;style=rotate"></script>
      </div>
    </div>
  </body>
</html>
